package com.xiaoyao.myframeapp.utils.DefineLoadMoreView;

import android.support.v4.widget.SwipeRefreshLayout;

import com.xiaoyao.myframeapp.R;


/**
 * @Author xiaoyao
 * @Email xiao80206040@qq.com
 * @Explain
 * @Created by Administrator on 2017/6/7 0007 09:43
 */
public class SwipeRefreshLayoutUtil {
    //TODO 定制刷新控件
    public static void initSwipeRefreshLayout(SwipeRefreshLayout s) {
        if (s == null) {
            return;
        }
        // 设置下拉圆圈上的颜色，蓝色、绿色、橙色、红色
        s.setColorSchemeResources(
                android.R.color.holo_blue_bright,
                android.R.color.holo_green_light,
                android.R.color.holo_orange_light,
                android.R.color.holo_red_light);
        // 设定下拉圆圈的背景
        s.setProgressBackgroundColor(R.color.qjs);
    }
}
